package com.spring.service.impl;



import com.spring.anno.Bean;
import com.spring.anno.Di;
import com.spring.dao.UserDao;
import com.spring.dao.impl.UserDaoImpl;
import com.spring.service.UserService;

@Bean
public class UserServiceImpl  implements UserService {

    @Di
    private UserDao userDao;
//    private UserDao userDao=new UserDaoImpl();


    public void add() {
        System.out.println("service输出.......");
        //调用dao的方法
        userDao.add();
    }
}
